package com.dodoke.ojserver.bean.mapper;

import com.dodoke.ojserver.bean.Problem;
import com.dodoke.ojserver.bean.dto.ProblemAddDTO;
import com.dodoke.ojserver.bean.vo.ProblemVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ProblemMapStruct {

    ProblemMapStruct PROBLEM_MAPPER = Mappers.getMapper(ProblemMapStruct.class);

    ProblemVO problemToProblemVO(Problem problem);

    Problem problemAddDtoToProblem(ProblemAddDTO problemAddDTO);
}
